﻿using System;

using AngularJS;

namespace Sample
{
    [NoCompile]
    public class PointService
    {
        public Action GetPoint;
    }

    class ServiceModule
    {
        public void Main()
        {
            new Action(() =>
            {
                var module = Angular.Module("service.data", new string[] { });

                module.Factory<PointService, Http>("pointsvc", (_http_) =>
                {
                    var svc = new PointService
                    {
                        GetPoint = new Action(() =>
                        {
                            _http_.ToString();
                        })
                    };

                    return svc;
                });

            })();
        }
    }
}
